package com.salt.modules.sys.service;


import com.salt.modules.sys.entity.BackgroundSysUser;
import com.salt.modules.sys.mapper.BackgroundSysUserMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.CrossOrigin;

import javax.annotation.Resource;

/**
 * (BackgroundSysUser)表服务实现类
 *
 * @author makejava
 * @since 2020-12-09 10:50:57
 */
@Service
@CrossOrigin
@Transactional(readOnly = false)
public class BackgroundSysUserService{
    @Resource
    private BackgroundSysUserMapper backgroundSysUserMapper;


    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */

    public String queryById(String id) {
        return this.backgroundSysUserMapper.queryById(id);
    }

    public int updateBackgroundImage(BackgroundSysUser backgroundSysUser){
        return backgroundSysUserMapper.updateBackgroundImage(backgroundSysUser);
    }
}